package com.wuhunyu.controller;


import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.service.CrmBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 首页banner表 前端控制器 for 普通用户
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-22
 */
@RestController
@RequestMapping("/crmBanner/guest")
//@CrossOrigin
public class BannerGuestController {

    @Autowired
    private CrmBannerService crmBannerService;

    @GetMapping("/selectAllBanners")
    public CommonResult selectAllBanners() {
        return crmBannerService.selectAllBanners();
    }

}

